package com.fzj.example.thread;

import java.util.ArrayDeque;
import java.util.Queue;

/**
 * ClassName: Model
 * date: 2019/10/24 15:10
 * Description: TODO
 *
 * @author fanzj@bonree.com
 * @since JDK 1.8
 */
public class Model {
    public static Queue<Car> queue;

    public static void main(String[] args) {
        Queue queue=new ArrayDeque();
        Thread th1=new Thread(new Producer(queue));
        Thread th2=new Thread(new Consumer(queue));
        th1.start();
        th2.start();
    }
}
